import { GetterTree } from 'vuex'
import { construct } from "@aximario/json-tree";
export const getters: GetterTree<any, any> = {
    bigTree(state, { all }) {
        return [{ agent_sn: '-1', menu_name: '根节点', children: all }]
    },
    all({ all }) {
        return construct(all, {
            id: 'menu_sn',
            pid: 'menu_psn'
        });
    }
}